import { Controller, Get, Req } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { util_ApiResponse_Base } from '@/common/util/apiResponse';
import { util_Index_ReturnContent } from '@/common/util/index';
import { DistributionRate_Service } from '../distributionRate/distributionRate.service';
import { IRequest } from '@/common/typeScripts';

@Controller('/web/distributionRateWeb')
@ApiTags('distributionRateWeb 分销比例列表')
export class DistributionRateWeb_Controller {
  constructor(private readonly distributionRateWeb_Service: DistributionRate_Service) {}

  @Get('/distributionRate')
  @util_ApiResponse_Base({
    dataType: 'dataType_ell',
    summary: '获取我的推广比例',
  })
  async distributionRateWeb_My(@Req() req: IRequest) {
    return util_Index_ReturnContent(await this.distributionRateWeb_Service.distributionRateWeb_My(req));
  }
}
